home *** CD-ROM | disk | FTP | other *** search
- Path: news.cern.ch!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: Can a function return a array of pointers? a.s.a.p.
- Date: 20 Apr 96 22:07:35 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.830038055@news.cern.ch>
- References: <4lalvn$536@badger.wmin.ac.uk>
- NNTP-Posting-Host: ues5.cern.ch
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- X-Newsreader: NN version 6.5.0 #18 (NOV)
-
- In <4lalvn$536@badger.wmin.ac.uk> Idoia Lertxundi <gsoec@wmin.ac.uk> writes:
-
- >My question is Can a function return a array of pointers?
-
- No. It can return the address of the first pointer in an array of pointers,
- however.
-
- In C, arrays are second class citizens. They cannot be assigned, passed
- as function arguments or returned as function values. However, all these
- actions can be performed if the array is wrapped into a structure.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-